import request from '@/utils/request'

export function listequipmentDangerset(query) {
  return request({
    url: '/danger/equipmentDangerset/list',
    method: 'get',
    params: query
  })
}

export function getAlarmInfo(query) {
  return request({
    url: '/phone/getAlarmInfo2',
    method: 'get',
    params: query
  })
}

export function createequipmentDangerset(data) {
  return request({
    url: '/danger/equipmentDangerset/create',
    method: 'post',
    data
  })
}

export function readequipmentDangerset(data) {
  return request({
    url: '/danger/equipmentDangerset/get/' + data.id,
    method: 'get'
  })
}

export function updateequipmentDangerset(data) {
  return request({
    url: '/danger/equipmentDangerset/update',
    method: 'post',
    data
  })
}

export function deleteequipmentDangerset(data) {
  return request({
    url: '/danger/equipmentDangerset/delete/' + data.feuipmentid,
    method: 'delete'
  })
}
